package com.my.common;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class IApplicationContext {
	private static final Logger logger = LoggerFactory.getLogger(IApplicationContext.class);

	@SuppressWarnings("resource")
	public static Object getBean(String beanName){
		return new ClassPathXmlApplicationContext("applicationContext.xml").getBean(beanName);
	};
}
